@import "@/common/styles/color.scss";
@import "~@/assets/fonts/fonts.css";

// 默认主题色
:root {
  --el-color-primary: #ff7b50;
  --el-font-family: "SourceHanSans-Nm";
}

body,
html {
  padding: 0;
  margin: 0;
  overflow-y: hidden;
  font-weight: 400;
  color: $title-big-color;
  font-family: "SourceHanSans-Nm";
}
.SourceHanSansNormal {
  font-family: "SourceHanSans-Nm";
}
.SourceHanSansMedium {
  font-family: SourceHanSansMedium;
}
.SourceHanSansBlod {
  font-family: "SourceHanSans-BD";
}
div {
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: #fff;
}
.cursor {
  cursor: pointer;
}
.f-r {
  float: right;
}
.f-l {
  float: left;
}
.dis-inlb {
  display: inline-block;
}

.m-l0 {
  margin-left: 0 !important;
}
.m-r0 {
  margin-right: 0 !important;
}
.m-t0 {
  margin-top: 0 !important;
}
.m-b0 {
  margin-bottom: 0 !important;
}

.m-l5 {
  margin-left: 5px;
}
.m-r5 {
  margin-right: 5px;
}
.m-t5 {
  margin-top: 5px;
}
.m-b5 {
  margin-bottom: 5px;
}

.m-l10 {
  margin-left: 10px;
}
.m-r10 {
  margin-right: 10px;
}
.m-t10 {
  margin-top: 10px;
}
.m-b10 {
  margin-bottom: 10px;
}

.m-l20 {
  margin-left: 20px;
}
.m-r20 {
  margin-right: 20px;
}
.m-t20 {
  margin-top: 20px;
}
.m-b20 {
  margin-bottom: 20px;
}

.m-l30 {
  margin-left: 30px;
}
.m-r30 {
  margin-right: 30px;
}
.m-t30 {
  margin-top: 30px;
}
.m-b30 {
  margin-bottom: 30px;
}
.m-b0 {
  margin-bottom: 0 !important;
}

.m-l40 {
  margin-left: 40px;
}
.m-r40 {
  margin-right: 40px;
}
.m-t40 {
  margin-top: 40px;
}
.m-b40 {
  margin-bottom: 40px;
}

.m-l50 {
  margin-left: 50px;
}
.m-r50 {
  margin-right: 50px;
}
.m-t50 {
  margin-top: 50px;
}
.m-b50 {
  margin-bottom: 50px;
}

.p-l10 {
  padding-left: 10px;
}
.p-r10 {
  padding-right: 10px;
}
.p-t10 {
  padding-top: 10px;
}
.p-b10 {
  padding-bottom: 10px;
}

.p-l50 {
  padding-left: 50px;
}
.p-r50 {
  padding-right: 50px;
}
.p-t50 {
  padding-top: 50px;
}
.p-b50 {
  padding-bottom: 50px;
}

.p-l20 {
  padding-left: 20px;
}
.p-r20 {
  padding-right: 20px;
}
.p-t20 {
  padding-top: 20px;
}
.p-b20 {
  padding-bottom: 20px;
}

.p-l30 {
  padding-left: 30px;
}
.p-r30 {
  padding-right: 30px;
}
.p-t30 {
  padding-top: 30px;
}
.p-b30 {
  padding-bottom: 30px;
}

.px-5 {
  padding-left: 5px;
  padding-right: 5px;
}
.f-r {
  float: right;
}
.f-l {
  float: left;
}
.dis-inlb {
  display: inline-block;
}

.m-l5 {
  margin-left: 5px;
}
.m-r5 {
  margin-right: 5px;
}
.m-t5 {
  margin-top: 5px;
}
.m-b5 {
  margin-bottom: 5px;
}

.m-l10 {
  margin-left: 10px;
}
.m-r10 {
  margin-right: 10px;
}
.m-t10 {
  margin-top: 10px;
}
.m-b10 {
  margin-bottom: 10px;
}

.m-l20 {
  margin-left: 20px;
}
.m-r20 {
  margin-right: 20px;
}
.m-t20 {
  margin-top: 20px;
}
.m-b20 {
  margin-bottom: 20px;
}

.m-l30 {
  margin-left: 30px;
}
.m-r30 {
  margin-right: 30px;
}
.m-t30 {
  margin-top: 30px;
}
.m-b30 {
  margin-bottom: 30px;
}
.m-b0 {
  margin-bottom: 0 !important;
}

.m-l40 {
  margin-left: 40px;
}
.m-r40 {
  margin-right: 40px;
}
.m-t40 {
  margin-top: 40px;
}
.m-b40 {
  margin-bottom: 40px;
}

.m-l50 {
  margin-left: 50px;
}
.m-r50 {
  margin-right: 50px;
}
.m-t50 {
  margin-top: 50px;
}
.m-b50 {
  margin-bottom: 50px;
}

.p-l10 {
  padding-left: 10px;
}
.p-r10 {
  padding-right: 10px;
}
.p-t10 {
  padding-top: 10px;
}
.p-b10 {
  padding-bottom: 10px;
}

.p-l50 {
  padding-left: 50px;
}
.p-r50 {
  padding-right: 50px;
}
.p-t50 {
  padding-top: 50px;
}
.p-b50 {
  padding-bottom: 50px;
}

.p-l30 {
  padding-left: 30px;
}
.p-r30 {
  padding-right: 30px;
}
.p-t30 {
  padding-top: 30px;
}
.p-b30 {
  padding-bottom: 30px;
}

.px-5 {
  padding-left: 5px;
  padding-right: 5px;
}
.px-10 {
  padding-left: 10px;
  padding-right: 10px;
}
.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}
.px-30 {
  padding-left: 30px;
  padding-right: 30px;
}
.px-40 {
  padding-left: 40px;
  padding-right: 40px;
}
.px-50 {
  padding-left: 50px;
  padding-right: 50px;
}

.py-5 {
  padding-top: 5px;
  padding-bottom: 5px;
}
.py-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}
.py-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}
.py-30 {
  padding-top: 30px;
  padding-bottom: 30px;
}
.py-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}
.py-50 {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* flex布局 */
.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.d-inline-block {
  display: inline-block;
}

.flex-1 {
  flex: 1;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-shrink {
  flex-shrink: 0;
}

.j-start {
  justify-content: flex-start;
}

.j-center {
  justify-content: center;
}

.j-end {
  justify-content: flex-end;
}

.j-sb {
  justify-content: space-between;
}

.j-sa {
  justify-content: space-around;
}

.a-center {
  align-items: center;
}

.a-start {
  align-items: flex-start;
}

.a-end {
  align-items: flex-end;
}

.a-stretch {
  align-items: stretch;
}

.a-baseline {
  align-items: baseline;
}

.a-self-start {
  align-self: flex-start;
}

.a-self-auto {
  align-self: auto;
}

.a-self-end {
  align-self: flex-end;
}

.a-self-stretch {
  align-self: stretch;
}

.a-self-baseline {
  align-self: baseline;
}

// 定义滚动条样式
::-webkit-scrollbar {
  width: 10px; /*对垂直滚动条有效*/
  height: 10px; /*对水平滚动条有效*/
}
/*定义滚动条的轨道颜色、内阴影及圆角*/
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(194, 191, 187, 0.3);
  background-color: rgba(243, 240, 237, 0.5);
  border-radius: 3px;
}
/*定义滑块颜色、内阴影及圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 7px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  //background-color: $title-sm-color;
  background-color: #f2f3f5;
}

// 地图输入提示
.tangram-suggestion-main {
  z-index: 3000 !important;
}
.searchMapPanelStyle {
  width: 250px;
  height: auto;
  border: 1px solid #c0c0c0;
  display: none;
}

// MessageBox样式
.deletConfirmBox {
  .el-message-box__header {
    height: 56px;
    background: #f7f7fa;
    font-weight: 500;
    color: $title-big-color;
    font-family: SourceHanSansMedium;
    padding: 0;
    display: flex;
    justify-content: center;
    .el-message-box__headerbtn {
      margin-top: 6px;
    }
  }
  .el-message-box__content {
    .el-message-box__container {
      .el-message-box__message {
        p {
          display: flex;
          justify-content: center;
          padding: 28px 0 21px 0;
          color: $title-big-color;
        }
      }
    }
  }
  .el-message-box__btns {
    margin-bottom: 18px;
    .el-button {
      width: 68px;
      height: 31px;
    }
  }
}

// 调整select默认样式
.el-select {
  min-width: 200px;
  .el-select__icon {
    color: $title-big-color !important;
  }
  .el-input.is-focus {
    .el-input__wrapper.is-focus {
      box-shadow: 0 0 0 1px $input-focus-bd-color inset !important;
    }
  }
  .el-input {
    .el-input__wrapper.is-focus {
      box-shadow: 0 0 0 1px $input-focus-bd-color inset !important;
    }
  }
}
.el-select-dropdown {
  .el-select-dropdown__item.selected {
    color: $input-select-color;
  }
  .el-select-dropdown__item.hover,
  .el-select-dropdown__item:hover {
    background-color: $input-bg-color;
  }
}
.el-select-dropdown.is-multiple {
  .el-select-dropdown__item.selected::after {
    background-color: $title-sm-color;
  }
}

// 调整input默认样式
.el-input {
  height: 40px;
}

// 调整form默认样式
.el-form {
  .el-form-item {
    .el-form-item__label {
      color: $title-big-color;
      height: 40px;
      line-height: 40px;
      font-family: SourceHanSansMedium;
    }
  }
}
.el-form.el-form--inline {
  .el-form-item {
    margin-right: 20px;
  }
}

.el-table {
  .el-table__header-wrapper {
    .el-table__header {
      .el-table__cell {
        padding: 22px 0;
        .cell {
          font-weight: bold;
          color: $title-big-color;
        }
      }
    }
  }
  .el-table__body-wrapper {
    .el-table__body {
      tr:hover {
        td.el-table__cell {
          background-color: #fff9f7;
        }
      }
      .el-table__row {
        .el-table__cell {
          padding: 10px 0 10px 0;
          .cell {
            font-weight: 400;
            color: #333333;
          }
        }
      }
    }
  }
}

// 分页器
.el-pagination {
  display: flex;
  justify-content: flex-end;
}
// 单选框
.el-radio-group {
  .el-radio-button {
    .el-radio-button__inner {
      background-color: #fff;
      color: #999;
    }
    .el-radio-button__original-radio:checked + .el-radio-button__inner {
      background-color: $btn-primary-bg-color;
      border-color: $btn-primary-bg-color;
      box-shadow: -1px 0 0 0 $btn-primary-bg-color;
    }
  }
}
// 日期选择
.el-date-table {
  td.end-date,
  td.start-date {
    .el-date-table-cell {
      .el-date-table-cell__text {
        background-color: $btn-primary-bg-color;
      }
    }
  }
  .el-date-table__row {
    td.in-range {
      .el-date-table-cell {
        background-color: #fff2e9;
      }
    }
    td.today {
      .el-date-table-cell__text {
        color: $btn-defualt-tx-color;
      }
    }
    td.available:hover {
      color: $btn-defualt-tx-color;
    }
  }
}

.el-sub-menu__title:hover {
  background-color: #fff9f7;
}

// popover样式
.el-popover.el-popper {
  padding: 20px 13px;
}

// 修改button默认样式
.el-button {
  height: 40px;
  padding: 12px 15px;
}
.el-button--small {
  height: 31px;
  padding: 6px 10px;
}
.el-button {
  --el-button-bg-color: #fff8f6;
  --el-button-border-color: #ff7b50;
  --el-button-text-color: #ff7b50;
  --el-border-radius-base: 6px;
  --el-button-hover-text-color: #fff;
  --el-button-hover-border-color: #ff7b50;
  --el-button-hover-bg-color: #ff7b50;
}
.el-button--primary {
  --el-button-active-text-color: #fff;
  --el-button-active-border-color: #fff8f6;
  --el-button-active-bg-color: #fff8f6;
  --el-button-hover-text-color: #fff;
  --el-button-hover-border-color: #e94b17;
}

.screen-button {
  padding: 0 15px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--screen-button-border-color);
}

.el-dialog__footer,
.el-dialog__header {
  text-align: center;
}

.el-button:first-child {
  margin-right: 10px;
}
.el-button + .el-button {
  margin-left: 0 !important;
  margin-right: 10px;
}

// 字体橙色
.button_edit {
  background: #fff9f7;
  border: 1px solid #fc7018;
  color: #fc7018;
  &:hover,
  &:focus {
    background: rgba(255, 224, 213, 0.8);
    color: #fc7018;
    border: 1px solid #fc7018;
  }
}

// 背景橙色
.button_view {
  color: #ffffff;
  border: 1px solid #fc7018;
  background: #fc7018;
  &:hover,
  &:focus {
    background: rgba(252, 112, 24, 0.8);
    color: #ffffff;
    border-color: transparent;
  }
}

// 背景橙色
.button_reset {
  color: #000000;
  background-color: #f5f5f5; //   #f0f0f0
  border-color: transparent;
  &:hover,
  &:focus {
    color: #000000;
    background-color: #f0f0f0; // #f0f0f0 #f7f7f7
    border-color: transparent;
  }
}

// 背景棕色
.button_funtion {
  background: #d4ae85;
  border: 1px solid #d4ae85;
  color: #ffffff;
  &:hover,
  &:focus {
    background: rgba(212, 174, 133, 0.8);
    color: #ffffff;
    border-color: transparent;
  }
}

// 字体棕色
.button_funtion2 {
  background: #fff8f6;
  border: 1px solid #d4ae85;
  color: #d4ae85;
  &:hover,
  &:focus {
    background: rgba(255, 233, 224, 0.8);
    color: #d4ae85;
    border: 1px solid #d4ae85;
  }
}

// 背景红色
.button_delete {
  border: 1px solid #f12527;
  color: #ffffff;
  background: #f12527;
  &:hover,
  &:focus {
    background: rgba(241, 37, 39, 0.8);
    color: #ffffff;
    border-color: transparent;
  }
}

// 字体红色
.button_delete2 {
  border: 1px solid #f12527;
  color: #f12527;
  background: #ffffff;
  &:hover,
  &:focus {
    background: rgba(255, 223, 224, 0.8);
    color: #f12527;
    border: 1px solid #f12527;
  }
}

// 背景灰色
.button_cancel {
  color: #ffffff;
  background: #7d7d9a;
  border: 1px solid #7d7d9a;
  &:hover,
  &:focus {
    background: rgba(125, 125, 154, 0.8);
    color: #ffffff;
    border-color: transparent;
  }
}

// 字体灰色
.button_cancel2 {
  color: #7d7d9a;
  background: #ffffff;
  border: 1px solid #7d7d9a;
  &:hover,
  &:focus {
    background: rgba(241, 241, 255, 0.8);
    color: #7d7d9a;
    border: 1px solid #7d7d9a;
  }
}
